﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace B.S.DataBase.MyProject.Domain.Management
{
    public class Basic
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int BasicId { get; set; }

        // 姓名
        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        // 性别
        [Required]
        [StringLength(10)]
        public string Sex { get; set; }

        // 年龄
        public int Age { get; set; }

        // 联系电话
        [StringLength(20)]
        public string PhoneNumber { get; set; }

        // 慢病毒病种
        [StringLength(100)]
        public string ChronicVirusDisease { get; set; }
        // 计划随访时间
        public DateTime ScheduledFollowUpTime { get; set; }

        // 随访方案
        [StringLength(200)]
        public string FollowUpPlan { get; set; }

        // 失访原因
        [SugarColumn(IsNullable = true)]
        public string LossToFollowUpReason { get; set; }

        // 备注
        [SugarColumn(IsNullable = true)]
        public string Remarks { get; set; }
        // 状态
        [SugarColumn(IsNullable = true)]
        public string Status { get; set; }
        // 随访时间
        [SugarColumn(IsNullable = true)]
        public DateTime? FollowUpTime { get; set; }
        //随访人
        [SugarColumn(IsNullable = true)]
        public string UpName { get; set; }
    }
}
